import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';

import {AppRoutingModule} from './app-routing.module';
import {AppComponent} from './app.component';
import {TodoComponent} from './todo/todo-main/todo-main.component';
import {TodoListComponent} from './todo/todo-list/todo-list.component';
import {TodoService} from './todo/todo-main/todo-main.service';
import {AuthModule} from './auth/auth.module';
import {AuthLogoutComponent} from './auth/auth-logout/auth-logout.component';

import {LocalStorage} from './utils/local-storage';


@NgModule({
    declarations: [
        AppComponent,
        TodoComponent,
        TodoListComponent,
        AuthLogoutComponent
    ],
    imports: [
        BrowserModule.withServerTransition({appId: 'todo-seo-pre'}),
        AppRoutingModule,
        FormsModule,
        ReactiveFormsModule,
        AuthModule
    ],
    providers: [
        TodoService,
        LocalStorage
    ],
    bootstrap: [AppComponent]
})
export class AppModule {
}
